<%@ page language="java" pageEncoding="utf-8"%>
<%@page import="entitybean.oc_user_name.EntityBeanOc_User_Name;"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>【数据库管理系统】</title>
</head>
<%
System.out.println("显示页面=管理员主页面");
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
			System.out.println("e.get_id="+basePath);
EntityBeanOc_User_Name e =(EntityBeanOc_User_Name)request.getSession().getAttribute("Ocean_User");
if(e!=null)
{
System.out.println("e.get_id="+e.getUsername());
	if(e.getPower().equals("OFF"))
	{
		String error_msg="没有访问权限~";
		request.setAttribute("error_msg", error_msg);
		response.sendRedirect(basePath);
		return;
	}
}
else
{
response.sendRedirect(basePath);
return;
}
 %>


<frameset rows="90,*" cols="*" frameborder="no" border="0" framespacing="0">
  <frame src="top.jsp" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" title="topFrame" />
  <frameset cols="180,*" frameborder="no" border="0" framespacing="0">
    <frame src="left.jsp" name="leftFrame" id="leftFrame" title="leftFrame" />
    <frame src="main.jsp" name="mainFrame" id="mainFrame" title="mainFrame" />
  </frameset>
</frameset>
<noframes>




</html>